module nade.mouse;

public import nade.controller;


class Mouse {
	static {
		MouseController get()
		{
			if(_controller is null)
				return _controller = new MouseController();

			return _controller;
		}

		void bind(uint button, DEvent pevent, DEvent revent = null)
		{
			get.bind(button, pevent, revent);
		}
		void bindWheelUp(DEvent event)
		{
			get.bindWheelUp(event);
		}
		void bindWheelDown(DEvent event)
		{
			get.bindWheelDown(event);
		}
		void bindMove(DAbsoluteEvent event)
		{
			get.bindMove(event);
		}

		private {
			MouseController		_controller;
		}
	}
}
